<?php include('header.php'); ?>

<!-- additional javascript hear -->
</head>
<body>
<div id="wrapper">
<!-- menu -->
<?php include('menu.php'); ?>
<!-- end menu -->

<!-- navigator -->
<?php include('navigator.php'); ?>
<!-- nav end -->

<div id="one">
 <?php
	if($this->session->flashdata('error'))
	{ 
	echo '<div class="error">' . $this->session->flashdata('error') . '</div>';
	}

	if($this->session->flashdata('success'))
	{ 
	echo '<div class="success">' . $this->session->flashdata('success') . '</div>';
	}
?>
	
<div class="item">
<h2>แจ้งเตือนผู้ที่ติดตามคุณ</h2>
<?php if($notifications == null) { echo '<h4>ไม่มีคำร้องขอใดๆเลย.</h4>'; } ?>
<?php
foreach($notifications as $nRow): 
?>

<h3>
<a href="<?=base_url();?>user/id/<?=$nRow['user_id'];?>" TARGET="_blank">
	<img src="<?=base_url() . 'application/userdata/profile_' . $nRow['user_id'] . '/avatars/thumbs/' . $nRow['avatar'];?>"><?=$nRow['username'];?>
</a>
</h3>
<br />
<p>
<a href="<?=base_url();?>profile/accept/<?=$nRow['friends_list_id'] . '/' . $nRow['username'];?>"><img src="<?=base_url();?>application/images/accept.gif" alt="ยอมรับ" /></a>
<a href="javascript:if(confirm('คุณแน่ใจหรือว่าต้องการปฏิเสธคำร้องขอนี้ ?')==true){window.location='<?=base_url();?>profile/reject/<?=$nRow['friends_list_id'] . '/' . $nRow['username'];?>';}"><img src="<?=base_url();?>application/images/reject.gif" alt="ปฏิเสธ" /></a>
</p>
<p>&nbsp;</p>
<br /><br />
<?php endforeach;?>
</div>
 </div>
<!-- footer -->
<?php include('footer.php');?>
<!-- footer end -->
</div>
</body>
</html>